import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class GedivaController {
    
    Map<IGraph, ArrayList<IDraw>> myGraphToDrawMap;
    Map<IDraw, IGraph> myDrawToGraphMap;
    
    IDraw myCurrentDraw;
    IGraph myCurrentGraph;
    GedivaView myView;
    GedivaModel myModel;

    public GedivaController(GedivaView view, GedivaModel model){
        myView = view;
        myModel = model;
        initializeView();
    }
    
    private void initializeView(){
        myView.createView();
    }
    
    public class MakeNewGraphAction implements ActionListener {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            IGraph graph = myController.myModel.makeNewGraph();
            IDraw draw = myController.myView.makeNewDraw(graph); // only passing on the name?
            myController.myGraphToDrawMap.put(graph, draw);
            myController.myDrawToGraphMap.put(draw, graph);
        }

    }
    
}
